package com.cspm.ahjy.bc.office.enums;


/**
 * 颜色枚举类
 * @author ServerZhang
 * @date 2017年10月17日
 */
public enum ColorEnum {

	RED("RED","红色"),
	
	
	AUTO("000000","黑色"),
	Q("993300","褐色"),
	W("333300","橄榄色"),
	E("003300","深绿"),
	R("003366","深青"),
	T("000080","深蓝"),
	Y("333399","靛蓝"),
	U("333333","灰色－80%"),
	
	I("800000","深红"),
	O("FF6600","橙色"),
	P("808000","深黄"),
	L("008000","绿色"),
	K("008080","青色"),
	J("0000FF","蓝色"),
	H("666699","蓝－灰"),
	G("808080","灰色－50%"),
	
	F("FF0000","红色"),
	D("FF9900","浅橙色"),
	S("99CC00","酸橙色"),
	A("339966","海绿"),
	Z("33CCCC","水绿色"),
	X("3366FF","浅蓝"),
	C("800080","紫罗兰"),
	V("999999","灰色－40%"),
	
	B("FF00FF","粉红"),
	N("FFCC00","金色"),
	M("FFFF00","黄色"),
	QQ("00FF00","鲜绿"),
	WW("00FFFF","青绿"),
	EE("00CCFF","天蓝"),
	RR("993366","梅红"),
	TT("C0C0C0","灰色－25%"),
	
	YY("FF99CC","玫瑰红"),
	UU("FFCC99","茶色"),
	II("FFFF99","浅黄"),
	OO("CCFFCC","浅绿"),
	PP("CCFFFF","浅青绿"),
	LL("99CCFF","淡蓝"),
	KK("CC99FF","淡紫"),
	HH("FFFFFF","白色");
	
	 
	String value;
	String name;
	

	ColorEnum(String value, String name){
		this.value = value;
		this.name = name;
	}
	
	public static ColorEnum getByValue(String value){
		if (value == null) {
			return null;
		}
		value = value.replaceAll("#", "");
		ColorEnum[] values = ColorEnum.values();
		for(ColorEnum colorEnum : values){
			if (colorEnum.value.equals(value.toUpperCase())) {
				return colorEnum;
			}
		}
		return null;
	}
	
	
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
}
